namespace Slaks.Graphs.Algorithms
{
	public class GraphDistancesCommonFeatureModel
	{
		public static double Distance(Graph one, Graph two)
		{
			double commonFeatureModel = CommonFeaturesModel.GetCommonFeatureMeasure(one, two);
			if (commonFeatureModel == 0.0) return 1;
			return 1 - commonFeatureModel;
		}
	}
}